import i18n from "@/i18n";

export const getLangs = () => {
  return Object.keys(i18n.global.messages.value);
};

export const setAttrLangs = (obj, attr, value) => {
  const langs = getLangs();
  langs.forEach((lang) => {
    obj[`${attr}${lang}`] = value;
  });
  return obj;
};
